package com.springboot.exception;

/**
 * @author zz
 * @version 1.0
 * @Description 自定义异常类
 */
public class CustomBusinessException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private String errorCode;
    public CustomBusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
    public String getErrorCode() {
        return errorCode;
    }
}
